﻿CREATE TABLE [dbo].[codeCarrier] (
    [CarrierCode] int not null identity(1,1),
    [Description] VARCHAR (50) NOT NULL,
    [Abbrev]      CHAR (6)     NOT NULL,
	[Carrier]		nvarchar(30) null,
	[Service]		nvarchar(30) null,
	[ServiceLevel] char(2) null
);
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines the mail carriers for shipping', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCarrier';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Carrier code.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCarrier',
	@level2type = N'COLUMN', @level2name = N'CarrierCode';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Description for CarrierCode', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCarrier',
	@level2type = N'COLUMN', @level2name = N'Description';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The name of the carrier', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCarrier',
	@level2type = N'COLUMN', @level2name = N'Carrier';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The name of the service the carrier', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCarrier',
	@level2type = N'COLUMN', @level2name = N'Service';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The ServiceLevel value is used to group similar services together for rate comparison.  For instance 1D represents next day so we can compare rates between all 1D services.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCarrier',
	@level2type = N'COLUMN', @level2name = N'ServiceLevel';

